const jwtClaim=function(jwt){
    let ts=jwt.split('.')
    //获取jwt的中间部分
    let payload=JSON.parse(decodeURIComponent(escape(window.atob(ts[1].replace(/-/g, "+").replace(/_/g, "/")))));
    return payload
}
export default{
    jwtClaim
}